package com.qq.day02.work00;

public class ddd {
    public static void main(String[] args) {
        new Zi(10);
    }
}

class Fu {
    public Fu() {
        System.out.println("父类空参构造");
    }

    public Fu(int a) {
        this();
        System.out.println("父类有参构造");
    }
}

class Zi extends Fu {
    public Zi() {
        super(10);
        System.out.println("子类空参构造");
    }

    public Zi(int a) {
        this();
        System.out.println("子类有参构造");
    }
}